<template>
  <div>
    <check-form ref="checkForm" @search="handleSearch" @addUser="handleAddUser" />
    <check-table ref="checkTable" @edit="handleEdit" />
  </div>
</template>

<script>
import CheckForm from './CheckForm'
import CheckTable from './CheckTable'
export default {
  components: {
    CheckForm,
    CheckTable
  },
  methods: {
    handleRefresh() {
      this.$refs.checkTable.handleGetList()
    },
    handleSearch(obj) {
      this.$refs.checkTable.handleGetList(obj)
    },
    handleAddUser() {
      this.$refs.archivesModal.edit(false, {})
    },
    handleEdit(bool, obj) {
      this.$refs.archivesModal.edit(bool, obj)
    }
  }
}
</script>
